home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Click 5
/
Click 5.iso
/
data
/
game5.dat
/
scripts
/
frame_1
/
DoAction_9.as
< prev
next >
Wrap
Text File
|
2002-11-22
|
2KB
|
25 lines
function Center(lev, row, pos)
{
var t311 = "f" + String(lev) + String(row - 1) + String(pos - 1);
var t312 = "f" + String(lev) + String(row - 1) + String(pos);
var t321 = "f" + String(lev) + String(row) + String(pos - 1);
var t422 = "f" + String(lev + 1) + String(row) + String(pos);
var t323 = "f" + String(lev) + String(row) + String(pos + 1);
var t332 = "f" + String(lev) + String(row + 1) + String(pos);
var t421 = "f" + String(lev + 1) + String(row) + String(pos - 1);
var t412 = "f" + String(lev + 1) + String(row - 1) + String(pos);
var t313 = "f" + String(lev) + String(row - 1) + String(pos + 1);
var t411 = "f" + String(lev + 1) + String(row - 1) + String(pos - 1);
var t333 = "f" + String(lev) + String(row + 1) + String(pos + 1);
var t331 = "f" + String(lev) + String(row + 1) + String(pos - 1);
var Us1 = !eval(t311).FishkiAviable && !eval(t312).FishkiAviable && !eval(t321).FishkiAviable && (!eval(t422).FishkiAviable || eval(t422).FishkiAviable && eval(t323).FishkiAviable && eval(t332).FishkiAviable) && !eval(t421).FishkiAviable && !eval(t412).FishkiAviable;
var Us2 = !eval(t312).FishkiAviable && !eval(t313).FishkiAviable && !eval(t323).FishkiAviable && (!eval(t421).FishkiAviable || eval(t321).FishkiAviable && eval(t332).FishkiAviable && eval(t421).FishkiAviable) && !eval(t411).FishkiAviable && !eval(t422).FishkiAviable;
var Us3 = !eval(t323).FishkiAviable && !eval(t332).FishkiAviable && !eval(t333).FishkiAviable && (!eval(t411).FishkiAviable || eval(t312).FishkiAviable && eval(t321).FishkiAviable && eval(t411).FishkiAviable) && !eval(t412).FishkiAviable && !eval(t421).FishkiAviable;
var Us4 = !eval(t321).FishkiAviable && !eval(t331).FishkiAviable && !eval(t332).FishkiAviable && (!eval(t412).FishkiAviable || eval(t312).FishkiAviable && eval(t323).FishkiAviable && eval(t412).FishkiAviable) && !eval(t411).FishkiAviable && !eval(t422).FishkiAviable;
if(Us1 || Us2 || Us3 || Us4)
{
return true;
}
return false;
}